package com.dg.river.core.http;

/**
 * Created by hy on 2018/10/16
 * Description : 接口文件路径 管理器
 */
public class ApiManager {

    // 设备
    public static class Device {
        // 设备信息
        public static final String POST_EQUIPMENT = UrlManager.AUTH_API_URL + "/authentication/device";
    }

    // 认证
    public static class Auth {
        // 用户名密码登录
        public static final String POST_LOGIN = UrlManager.AUTH_API_URL + "/oauth/token";
        // 忘记密码
        public static final String POST_FORGOT_PWD = UrlManager.AUTH_API_URL + "/api/lostPsd";
        // 校验token
        public static final String CHECK_TOKEN = UrlManager.AUTH_API_URL + "/oauth/check_token";
        // 刷新token
        public static final String REFRESH_TOKEN = UrlManager.AUTH_API_URL + "/oauth/token";
        // 退出登录
        public static final String LOGOUT = UrlManager.AUTH_API_URL + "/api/logout";
        // 发送短信验证码
        public static final String SEND_PHONE_CODE = UrlManager.AUTH_API_URL + "/api/sms/send/";
        // 修改密码
        public static final String CHANGE_PASSWORD = UrlManager.AUTH_API_URL + "/api/changePsd";
    }

    // 用户
    public static class User {
        // 获取用户信息
        public static final String GET_USER_INFO = UrlManager.AUTH_API_URL + "/api/user/info";
        // 修改用户信息
        public static final String POST_UPDATE_USER = UrlManager.AUTH_API_URL + "/api/user/modify";
        // 修改用户手机号
        public static final String POST_UPDATE_PHONE = UrlManager.AUTH_API_URL + "/api/changePhone";
        // 获取我的船舶列表
        public static final String GET_MY_SHIP_LIST = UrlManager.APP_API_URL + "/api/ship/shipInfo";
    }

    // 功能区
    public static class Module {
        // 获取banner列表
        public static final String GET_BANNER_LIST = UrlManager.APP_API_URL + "/api/app/banner/queryBraceBanner";
        // 获取常见问题
        public static final String GET_HOT_QUESTION_LIST = UrlManager.APP_API_URL + "/api/suggest/hotSuggest";
        // 获取首页通知公告
        public static final String GET_MAIN_NOTICE = UrlManager.APP_API_URL + "/app/announcement/queryAnnouncementByParam";
        // 获取通知公告
        public static final String GET_NOTICE_LIST = UrlManager.APP_API_URL + "/app/announcement/queryAppAnnouncement";
        // 获取快捷消息
        public static final String GET_QUICK_MESSAGE = UrlManager.APP_API_URL + "/appMsg/getQuickAppMsg";
        // 获取APP版本信息
        public static final String GET_APP_VERSION = UrlManager.APP_API_URL + "/appVersionUpgrade/getMaxVersionInfo";
    }

    // 调度
    public static class Dispatch {
        // 我的调度信息
        public static final String GET_MY_DISPATCH_INFO = UrlManager.APP_API_URL + "/api/dispatch/myDispatch";
    }

    // 报港
    public static class PortReport {
        // 获取报港信息
        public static final String POST_PORT_REPORT_INFO = UrlManager.APP_API_URL + "/declare/getDeclareInfo";
        // 初始化报港
        public static final String POST_INIT_PORT_PORT = UrlManager.APP_API_URL + "/declare/initDeclare";
        // 途径船闸
        public static final String POST_THROUGH_PORT = UrlManager.APP_API_URL + "/declare/getPassLockList";
        // 保存远程报闸
        public static final String POST_SAVE_PORT_REPORT = UrlManager.APP_API_URL + "/declare/saveDeclare";
        // 编辑远程报闸
        public static final String POST_EDIT_PORT_REPORT = UrlManager.APP_API_URL + "/declare/editDeclare";
        // 获取报闸费用
        public static final String POST_PORT_FEE = UrlManager.APP_API_URL + "/declare/getFeeInfo";
        // 强制结束流程
        public static final String POST_END_SAIL = UrlManager.APP_API_URL + "/declare/endSail";
        // 取消报港
        public static final String POST_CANCEL_REPORT = UrlManager.APP_API_URL + "/declare/cancelDeclare";
        // 变更航程
        public static final String POST_CHANGE_SAIL = UrlManager.APP_API_URL + "/declare/sailChange";
        // 获取订单编号
        public static final String POST_ORDER_NO = UrlManager.APP_API_URL + "/declare/getOrderNo";
        // 获取作业区列表
        public static final String GET_WORKING_AREA_LIST = UrlManager.APP_API_URL + "/stationDic/jobAndPortList";
        // 获取船闸列表
        public static final String GET_SHIP_LOCKS_LIST = UrlManager.APP_API_URL + "/stationDic/LockList";
        // 获取船队列表信息
        public static final String GET_BOAT_TRAIN = UrlManager.APP_API_URL + "/declare/getShipGroup";
    }

    // 待闸
    public static class WaitLock {
        // 获取待闸情况列表
        public static final String GET_WAIT_LOCK_LIST = UrlManager.APP_API_URL + "/api/dispatch/queryAllStatisticsInfo";
        // 获取待闸情况详情
        public static final String GET_WAIT_LOCK_DETAILS = UrlManager.APP_API_URL + "/api/dispatch/queryShipLockInfo";
    }

    // 订单
    public static class Order {
        // 获取我的订单列表
        public static final String GET_ORDER_LIST = UrlManager.APP_API_URL + "/sail";
        // 获取我的订单详情
        public static final String GET_ORDER_DETAILS = UrlManager.APP_API_URL + "/sail/";
        // 获取补费订单列表
        public static final String GET_SUPPLEMENTARY_FEE_LIST = UrlManager.APP_API_URL + "/repairOrder";
        // 获取补费订单详情
        public static final String GET_SUPPLEMENTARY_FEE_DETAILS = UrlManager.APP_API_URL + "/repairOrder/";
    }

    // 消息
    public static class Message {
        // 获取我的未读消息总数
        public static final String GET_NO_READ_MESSAGE_COUNT = UrlManager.APP_API_URL + "/appMsg/getAllcount";
        // 获取我的消息列表
        public static final String GET_MESSAGE_MAIN_LIST = UrlManager.APP_API_URL + "/appMsg/getAppMsgTypeGroup";
        // 获取消息二级列表
        public static final String GET_MESSAGE_INFO_LIST = UrlManager.APP_API_URL + "/appMsg/selectByType";
        // 修改为已读状态
        public static final String SET_READ = UrlManager.APP_API_URL + "/appMsg/readed";
        // 修改消息为已读状态
        public static final String SET_READ_BY_ID = UrlManager.APP_API_URL + "/appMsg/readedById";
        // 获取消息订单状态
        public static final String GET_MSG_ASK_STATUS = UrlManager.APP_API_URL + "/appMsg/getMsgAskType";
    }

    // 资讯
    public static class News {
        // 获取新闻资讯标签
        public static final String GET_NEWS_TAG = UrlManager.APP_API_URL + "/app/queryAppTagList";
        // 获取新闻资讯列表
        public static final String GET_NEWS_LIST = UrlManager.APP_API_URL + "/app/findContentByTag";
    }

    // 字典
    public static class Dictionary {
        // 获取字典内容
        public static final String GET_DICTIONARY = UrlManager.APP_API_URL + "/dict/getDictByGroup";
    }

    // 其他
    public static class Other {
        // 上传单文件
        public static final String POST_UPLOAD_FILE = UrlManager.APP_API_URL + "/api/file/upload";
        // 提交意见反馈
        public static final String POST_FEED_BACK = UrlManager.APP_API_URL + "/api/suggest/suggest";
    }

    // 支付
    public static class Pay {
        // 支付
        public static final String APP_PAY = UrlManager.APP_API_URL + "/pay/appPay";
        // 校验支付
        public static final String CHECK_APP_PAY = UrlManager.APP_API_URL + "/pay/checkPay";
        // 支付-补费
        public static final String APP_PAY_REPAIR = UrlManager.APP_API_URL + "/pay/appPayRepair";
        // 校验支付-补费
        public static final String CHECK_APP_PAY_REPAIR = UrlManager.APP_API_URL + "/pay/checkPayRepair";
    }

    // 发票
    public static class Invoice {
        // 所有可开发票的通航业务
        public static final String CAN_INVOICE_LIST = UrlManager.APP_API_URL + "/sail/queryCanInvoice";
        // 开票历史列表
        public static final String INVOICE_HISTORY_LIST = UrlManager.APP_API_URL + "/tInvoiceHistory";
        // 创建流水号
        public static final String CREATE_SERIAL_NUMBER = UrlManager.APP_API_URL + "/tInvoiceHistory/checkSailForInvoice";
        // 获取发票抬头数据
        public static final String INVOICE_HEADER_LIST = UrlManager.APP_API_URL + "/invoice/getAll";
        // 添加发票抬头信息
        public static final String ADD_INVOICE_HEADER = UrlManager.APP_API_URL + "/invoice/addInvoiceHeader";
        // 删除发票抬头
        public static final String DELETE_INVOICE_HEADER = UrlManager.APP_API_URL + "/invoice/delete/";
        // 编辑发票抬头
        public static final String UPDATE_INVOICE_HEADER = UrlManager.APP_API_URL + "/invoice/upInvoiceHeader";
        // 开票
        public static final String POST_INVOICE = UrlManager.APP_API_URL + "/tInvoiceHistory";
        // 重新开票
        public static final String AGAIN_POST_INVOICE = UrlManager.APP_API_URL + "/tInvoiceHistory/reopen/update";
        // 开票详情
        public static final String INVOICE_DETAILS = UrlManager.APP_API_URL + "/tInvoiceHistory/";
        // 开票订单
        public static final String GET_INVOICE_ORDER_LIST = UrlManager.APP_API_URL + "/sail/sailListForId";
    }

    // 网页
    public static class Web {
        // 隐私政策
        public static final String PRIVATE_URL = "http://218.56.102.186:8086/H5/#/protocol";
        // 用户协议
        public static final String USER_URL = "http://218.56.102.186:8086/H5/#/privacyPolicy";
    }
}
